//
//  AboutView.swift
//  ShouChong
//
//  Created by yw on 2024/8/27.
//

import SwiftUI

struct AboutView: View {
    @Environment(\.presentationMode) var mode
    var body: some View {
       
        VStack {
            HStack {
                Spacer()
                ShakeButton(label:
                                Image(systemName: "xmark")
                    .foregroundColor(Color("color_gray"))
                            
                ) {
                    mode.wrappedValue.dismiss()
                }.modifier(MainTextModifier(fontWeight: .bold))
                    .padding(.horizontal,20)
                    .padding(.vertical,10)
            }
            .padding(.top,12)
            Spacer()
            VStack {
                Image("logo")
                    .resizable()
                    .frame(width: 200,height: 200)
                    .cornerRadius(20)
                Text("撸了么 - V\(kAppVersion ?? "1.0")")
                    .modifier(MainTextModifier(fontSize: 14, fontWeight: .medium, foreColor: Color("color_text_black")))
                    .padding(.top,4)
            }.padding(.bottom,80)
            Spacer()
            Text("CREATE BY YW")
                .modifier(MainTextModifier(fontSize: 10, fontWeight: .medium, foreColor: Color("color_text_black")))
                .padding(.bottom,12)
        }.background(Color("color_bg"))
    }
}


